package com.egitim.panels;
 
 
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Panel;

import com.egitim.cati.Makale;
import com.egitim.model.BaseEntity;
import com.egitim.model.Etiket;
 

/**
 * Shows a list of people.
 * 
 * @author R.J. Lorimer
 */
public class TekEtiketPanel extends Panel {
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * Id constructor.
	 * @param id the Id.
	 */
 
	public TekEtiketPanel(String id, BaseEntity baseEntity) {
		super(id);
		Etiket etiket = new Etiket();
		etiket=(Etiket) baseEntity;
		PageParameters pageParameters=new PageParameters();
	 
		pageParameters.add("etiketId", etiket.getId().toString());
		
		BookmarkablePageLink<Makale> bookmarkablePageLink=new BookmarkablePageLink<Makale>("etiketAdiLink"
																					, Makale.class, pageParameters);
	    bookmarkablePageLink.add(new Label("etiketAdiLabel",etiket.getText()));
	    
	    add(bookmarkablePageLink);
	 }
	 
}

